# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libkgeomap
pkgver=20.04.3
pkgrel=0
pkgdesc="A wrapper around world map components for browsing and arranging photos on a map"
url="https://www.kde.org/applications/graphics/"
# mips, ppc64le and s390x blocked by marble-dev
# armhf blocked by libkexiv2
arch="all !ppc64le !s390x !armhf !mips !mips64"
license="GPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtwebkit-dev ki18n-dev kconfig-dev kio-dev marble-dev libkexiv2-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/libkgeomap-$pkgver.tar.xz"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="c8673fb49f2742254793ca6bc477fab5b52bc7da462760c4eeaf58144b90f495beb4eef536ccc29b6f26675301ce3e84dadb22558ee8545b75fe65aac1d70e0b  libkgeomap-20.04.3.tar.xz"
